package org.yumeko.cmdb.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yumeko.cmdb.service.impl.CmdbServiceImpl;

@Slf4j
@RestController
@RequestMapping("/cmdb")
public class CmdbController {

    @Autowired
    private CmdbServiceImpl cmdbServiceImpl;

    @GetMapping("/instances")
    public void getInstances() {
        cmdbServiceImpl.fetchAllModel();
    }
}
